package com.suncaper.wcss.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.suncaper.wcss.common.PageDTO;
import com.suncaper.wcss.model.domain.Application;
import com.baomidou.mybatisplus.extension.service.IService;
import com.suncaper.wcss.model.domain.AuditHistory;
import com.suncaper.wcss.model.dto.AuditHistoryDTO;
import com.suncaper.wcss.model.vo.ApplicationVO;

/**
 * <p>
 * 申请表 服务类
 * </p>
 *
 * @author lxp
 * @since 2021-11-16
 */
public interface ApplicationService extends IService<Application> {

    Boolean create(Application application);

    Page<ApplicationVO> waitAudit(PageDTO pageDTO, Application application);

    void audit(AuditHistory history);

    void audits(AuditHistoryDTO history);

    Page<ApplicationVO> pageList(PageDTO pageDTO, Application application);

    ApplicationVO getBySnAndBatchId();

    void checkPro(Application application);
}
